package _1._0._0._127.ormrpc.services.WSExternalDataExchangeFacade;

public class WSExternalDataExchangeFacadeSrvProxyProxy implements WSExternalDataExchangeFacadeSrvProxy {
    private String _endpoint = null;
    private WSExternalDataExchangeFacadeSrvProxy wSExternalDataExchangeFacadeSrvProxy = null;

    public WSExternalDataExchangeFacadeSrvProxyProxy() {
        _initWSExternalDataExchangeFacadeSrvProxyProxy();
    }

    public WSExternalDataExchangeFacadeSrvProxyProxy(String endpoint) {
        _endpoint = endpoint;
        _initWSExternalDataExchangeFacadeSrvProxyProxy();
    }

    private void _initWSExternalDataExchangeFacadeSrvProxyProxy() {
        try {
            wSExternalDataExchangeFacadeSrvProxy = (new WSExternalDataExchangeFacadeSrvProxyServiceLocator()).getWSExternalDataExchangeFacade();
            if (wSExternalDataExchangeFacadeSrvProxy != null) {
                if (_endpoint != null)
                    ((javax.xml.rpc.Stub) wSExternalDataExchangeFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
                else
                    _endpoint = (String) ((javax.xml.rpc.Stub) wSExternalDataExchangeFacadeSrvProxy)._getProperty("javax.xml.rpc.service.endpoint.address");
            }

        } catch (javax.xml.rpc.ServiceException serviceException) {
        }
    }

    public String getEndpoint() {
        return _endpoint;
    }

    public void setEndpoint(String endpoint) {
        _endpoint = endpoint;
        if (wSExternalDataExchangeFacadeSrvProxy != null)
            ((javax.xml.rpc.Stub) wSExternalDataExchangeFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

    }

    public WSExternalDataExchangeFacadeSrvProxy getWSExternalDataExchangeFacadeSrvProxy() {
        if (wSExternalDataExchangeFacadeSrvProxy == null)
            _initWSExternalDataExchangeFacadeSrvProxyProxy();
        return wSExternalDataExchangeFacadeSrvProxy;
    }

    public String test(String param) throws java.rmi.RemoteException, externaldataexchangefacade.client.WSInvokeException {
        if (wSExternalDataExchangeFacadeSrvProxy == null)
            _initWSExternalDataExchangeFacadeSrvProxyProxy();
        return wSExternalDataExchangeFacadeSrvProxy.test(param);
    }

    public String exportData(String easTemplateNumber, String mainQueryPK, String mainQuery) throws java.rmi.RemoteException, externaldataexchangefacade.client.WSInvokeException {
        if (wSExternalDataExchangeFacadeSrvProxy == null)
            _initWSExternalDataExchangeFacadeSrvProxyProxy();
        return wSExternalDataExchangeFacadeSrvProxy.exportData(easTemplateNumber, mainQueryPK, mainQuery);
    }

    public String[][] importBizData(String easTemplaeNum, String xmlData, boolean isUpdate) throws java.rmi.RemoteException, externaldataexchangefacade.client.WSInvokeException {
        if (wSExternalDataExchangeFacadeSrvProxy == null)
            _initWSExternalDataExchangeFacadeSrvProxyProxy();
        return wSExternalDataExchangeFacadeSrvProxy.importBizData(easTemplaeNum, xmlData, isUpdate);
    }

    public String[][] importData(String easTemplateNumber, String[] key, String[] data, boolean isUpdate) throws java.rmi.RemoteException, externaldataexchangefacade.client.WSInvokeException {
        if (wSExternalDataExchangeFacadeSrvProxy == null)
            _initWSExternalDataExchangeFacadeSrvProxyProxy();
        return wSExternalDataExchangeFacadeSrvProxy.importData(easTemplateNumber, key, data, isUpdate);
    }


}